package com.ag.hmk.action;

import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.CaseServImpl;
/**
 * 
 * @author hmk
 *	删除案例信息
 */
public class DelCaseAction extends BaseAction {

	private static final long serialVersionUID = 531212001L;
	
	private CaseServImpl caseServImpl;
	private String caseID1; //案例ID
	private String delString; //返回值，标志是否删除成功
	
	/*
	 * 删除案例
	 */
	public String delCase()throws Exception{
		try {
			caseServImpl.delete(caseID1);
			this.setDelString("1");
		} catch (Exception e) {
			e.printStackTrace();
			this.setDelString("0");
		}
		return "delCaseOK";
	}

	public String getDelString() {
		return delString;
	}

	public void setDelString(String delString) {
		this.delString = delString;
	}

	public void setCaseServImpl(CaseServImpl caseServImpl) {
		this.caseServImpl = caseServImpl;
	}

	public void setCaseID1(String caseID1) {
		this.caseID1 = caseID1;
	}

}
